package com.che300.test.demos.web.common;

import lombok.Data;

/**
 * @author chenjl26787
 * @version 1.0
 * @date 2025-02-24$ 15:22
 */
public enum HttpServerCodeEnum {
    SUCCESS(200,"成功调用"),
    ERROR(500,"服务器错误"),
    PHONE_ERROR(400,"请输入11位有效手机号"),
    NOT_FOUND(404,"找不到资源"),
    ;
    private int code;
    private String message;
    HttpServerCodeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }
    public int getCode() {
        return code;
    }
    public String getMessage() {
        return message;
    }
    @Override
    public String toString() {
        return "HttpServerCodeEnum{" +
                "code=" + code +
                ", message='" + message + '\'' +
                '}';
    }

}
